/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.wechatmsg.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfz.campusinfo.common.persistence.DataEntity;

/**
 * 微信用户组别Entity
 * @author 陈维乾
 * @version 2018-05-06
 */
public class WeixinUserGroup extends DataEntity<WeixinUserGroup> {
	
	private static final long serialVersionUID = 1L;
	private String openId;		// openId
	private String userName;	// 学生姓名
	private String groupId;		// 微信组别id
	private String groupName;

	public WeixinUserGroup() {
		super();
	}

	public WeixinUserGroup(String id){
		super(id);
	}

	@Length(min=1, max=64, message="学生姓名长度必须介于 1 和 64 之间")
	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}
	
	@Length(min=1, max=64, message="微信组别长度必须介于 1 和 64 之间")
	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
}